<html><!-- InstanceBegin template="/Templates/admin.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- InstanceBeginEditable name="doctitle" -->
<title>Untitled Document</title>
<link rel="stylesheet" type="text/css" href="css/layout.css" />
<link rel="stylesheet" type="text/css" href="css/style1.css" />
<script language="javascript" type="text/javascript" src="js/jquery.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.easing.js"></script>
<script language="javascript" type="text/javascript" src="js/script.js"></script>
<script type="text/javascript">
 $(document).ready( function(){	
		// buttons for next and previous item						 
		var buttons = { previous:$('#jslidernews1 .button-previous') ,
						next:$('#jslidernews1 .button-next') };			
		 $('#jslidernews1').lofJSidernews( { interval : 4000,
											direction		: 'opacitys',	
											easing			: 'easeInOutExpo',
											duration		: 1200,
											auto		 	: true,
											maxItemDisplay  : 4,
											navPosition     : 'horizontal', // horizontal
											navigatorHeight : 32,
											navigatorWidth  : 80,
											mainWidth		: 950,
											buttons			: buttons } );	
	});
</script>

<link rel="stylesheet" href="css/product_detail.css" type="text/css">
<!-- InstanceEndEditable -->
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body>
<div id="wrap">
  <div id="header"></div>
	<div id="Layer8">
  	<div id="Layer32">	
		<div id="Layer33">
			<?php 
				$page = 1;
			?>		
			<a href="quanlysanpham.php?&page = <?php echo $page?>">
				<p id="fontAdmin">Quản Lý Sản Phẩm</p>
		  </a>
	  </div>
	</div>
	<div id="Layer34">
		<div id="Layer35">
			<a href="quanlythanhvien.php">
				<p id="fontAdmin">Quản lý thành viên</p>
		  </a>
 	  </div>
	</div>
	<div id="Layer36">	
		<div id="Layer37">	
			<a href="quanlytinkhuyenmai.php">
				<p id="fontAdmin">Quản lý tin khuyến mãi</p>
		  </a>
	  </div>
	</div>
	<div id="Layer38">
		<div id="Layer39">
			<a href="thongkesanpham.php">
				<p id="fontAdmin">Thống kê sản phẩm</p>
		  </a>
	  </div>
	</div>
	<div id="Layer40">	
		<div id="Layer41">
			<a href="quanlyhoadon.php">
				<p id="fontAdmin">Quản lý hoá đơn</p>
		  </a>
	  </div>
	</div>
	<div id="Layer42">	
		<div id="Layer43">
			<a href="quanlynhacungcap.php">
				<p id="fontAdmin">Quản lý nhà cung cấp</p>
		  </a>
	  </div>
	</div>
  </div>
  <div id="Layer28"><!-- InstanceBeginEditable name="EditRegion3" -->
  <?php
  	require("connect.php");
	$pID = $_REQUEST["pID"];
	$query = "select * from product where pID = {$pID}";
	$product = mysql_query($query) or  die("Not excute command! ".$query);
	$row = mysql_fetch_array($product);
  ?>
    <table width="600" border="" align="center" style="border:1px outset color:#70a972;" cellspacing="0px">
      <tr>
        <td scope="col" style="background-color:#70a972; color:#FFFFFF;font-size:18px" colspan="2" align="center">Thông tin chi tiết sản phẩm:<b style="color:#FF0000">"<?php echo $row['pName'] ;?>"</b> </td>
      </tr>
      <tr>
        <td width="136" id="styleTable">Tên sản phẩm: </td>
        <td width="448" id="styleTable"><?php echo $row['pName'] ;?></td>
      </tr>
      <tr>
        <td id="styleTable">Ảnh sản phẩm: </td>
        <td id="styleTable"><img src="images/<?php echo $row['pImage']?>"></td>
      </tr>
      <tr >
        <td id="styleTable">Số lượng: </td>
        <td id="styleTable"><?php echo  $row['pAmount'] ;?></td>
      </tr>
      <tr >
        <td id="styleTable">Thời gian bảo hành: </td>
        <td id="styleTable"><?php echo $row ['pWarranty'] ;?></td>
      </tr>
      <tr >
        <td id="styleTable">Thông tin chi tiết: </td>
        <td id="styleTable"><?php echo $row['pDetail'] ;?></td>
      </tr>
      <tr >
        <td id="styleTable">Giá: </td>
        <td id="styleTable"><?php echo $row['pPrice'] ;?></td>
      </tr>
      <tr >
	  	<?php
			$cID  = $row['catID'];
			$catagory = mysql_query("select * from catagory where catID= {$cID}") or die ("Not excute command! ");
			$rs = mysql_fetch_array($catagory); 
		?>
        <td id="styleTable">Nhóm sản phẩm: </td>
        <td id="styleTable"><?php echo $rs['catName'] ;?></td>
      </tr>
      <tr >
	  	<?php
			$sID  = $row['subID'];
			$supplier = mysql_query("select * from subplier where subID= {$sID}") or die ("Not excute command! ");
			$rsSub = mysql_fetch_array($supplier); 
		?>
        <td id="styleTable">Nhà cunng cấp: </td>
        <td id="styleTable"><?php echo $rsSub['subName'] ;?></td>
      </tr>
      <tr >
        <td id="styleTable">Trạng thái: </td>
        <td id="styleTable">
		<?php if($row['pStatus']==1)
		{
			echo "Còn hàng";
		}else
		{
			echo "Hết hàng";
		}
		?>
		</td>
      </tr>
      <tr >
	  	<?php
			$ptID  = $row['ptID'];
			$pt = mysql_query("select * from promotion where ptID= {$ptID}") or die ("Not excute command! ");
			$rspt = mysql_fetch_array($pt); 
		?>
        <td id="styleTable">Khuyến mại: </td>
        <td id="styleTable"><?php echo $rspt['ptTitle'] ;?></td>
      </tr>
    </table>
		  <br>
	<center><a href=product_edit.php?&pID=<?php  echo  $row["pID"]; ?>><img src="images/edit.png"> Sửa </a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a onClick="return confirm('Bạn có chắc muốn xoá hay không');" href=product_delete.php?&pID=<?php  echo  $row["pID"]; ?> ><img src="images/remove.png">Xoá</center><br>
	<center>&nbsp;&nbsp;<a href=quanlysanpham.php><img src="images/arrow_left.png">Quay lại</a></center>
  <!-- InstanceEndEditable --></div>
<div id="Layer25"></div>
<div id="Layer26">
	<div id="Layer27">
		<center>
			
			<p>Copyright © 2011 Nội thất vệ sinh - Nội thất phòng tắm - Thiết bị vệ sinh - Nội thất cao cấp
			Thông tin trên web chỉ là tham khảo. Chúng tôi chưa cung cấp thông tin hoặc dịch vụ trên website này
			Phát triển bởi Thiết Kế Website Đẹp		</p>
			<p>Design By :H3TL  </p>
		</center>
	</div>
</div>

</div>
<!------------------------------------- END OF THE CONTENT ------------------------------------------------->





































</body>
<!-- InstanceEnd --></html>
<div id="Layer9"></div>
